//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.utils.basehelper.money;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class MoneyJsonSerializer extends JsonSerializer<Long> {
    private static final Logger log = LoggerFactory.getLogger(MoneyJsonSerializer.class);

    public MoneyJsonSerializer() {
    }

    public void serialize(Long value, JsonGenerator gen, SerializerProvider serializers) throws IOException {
        String text = value == null ? null : com.zr.test.MoneyConvertUtil.convertToYuan(value);
        if (text != null) {
            gen.writeString(text);
        }

    }
}
